package com.qf.lanzhou.shop.api.service.impl;

import com.qf.lanzhou.shop.pojo.entity.Category;
import com.qf.lanzhou.shop.api.dao.CategoryMapper;
import com.qf.lanzhou.shop.api.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author Nerly
 * @Date 2021/1/8 15:07
 * @JDK 1.8
 * @Version 1.0
 */
@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public List<Category> selectAll() {
        List<Category> categoryList = categoryMapper.selectAll();
        return categoryList;
    }

    @Override
    public List<Category> selectAllWithDetail() {
        List<Category> categoryList = categoryMapper.selectAllWithDetail();
        System.out.println(categoryList);
        return null;
    }


}
